// pages/message/index.js
const $api = require('../../../../request/api').API;
Page({
  data: {
    details: undefined
  },
  onLoad: function (options) {
    const data = JSON.parse(decodeURIComponent(options.item));
    this.setData({ details: data });
    $api.setIsRead({ remindId: data.remindId });
  }
});
